<?php
class ArticlesWidget extends Widget
{
    public function render($data)
    {
        $articlesList = D("Article")->select();
        $data['list'] = $articlesList;
        $content = $this->renderFile('articles',$data);
        return $content;

    }
}
